package com.yy.job.core.domain;

import java.util.Date;

import com.yy.job.common.dao.po.YYJobLogDO;
import com.yy.job.common.enums.JobActionEnum;

public class JobExecLogDomain extends BaseDomain {
	
	private static final long serialVersionUID = 5898564618477577612L;
	
	private Long jobId;

	private String wokerName;
	
	/**
	 * job动作
	 */
	private JobActionEnum jobAction;

	private Date execTime;

	private String errMsg;
	
	/**
	 * 系统异常时候的堆栈
	 */
	private String errStack;

	public Long getJobId() {
		return this.jobId;
	}

	public void setJobId(Long jobId) {
		this.jobId = jobId;
	}

	public String getWokerName() {
		return this.wokerName;
	}

	public void setWokerName(String wokerName) {
		this.wokerName = wokerName;
	}

	public Date getExecTime() {
		return this.execTime;
	}

	public void setExecTime(Date execTime) {
		this.execTime = execTime;
	}

	public String getErrMsg() {
		return this.errMsg;
	}

	public void setErrMsg(String errMsg) {
		this.errMsg = errMsg;
	}

	public String getErrStack() {
		return this.errStack;
	}

	public void setErrStack(String errStack) {
		this.errStack = errStack;
	}

	public JobActionEnum getJobAction() {
		return jobAction;
	}

	public void setJobAction(JobActionEnum jobAction) {
		this.jobAction = jobAction;
	}

	public JobExecLogDomain() {
	}

	public JobExecLogDomain(YYJobLogDO jobLogDO) {
		setId(jobLogDO.getId());
		setJobId(jobLogDO.getJobId());
		setWokerName(jobLogDO.getModifier());
		
		setErrMsg(jobLogDO.getErrMsg());
		setErrStack(jobLogDO.getErrStack());
		setOperator(jobLogDO.getManualExecUser());
	}

}
